package com.dek.ssm.ch9;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.dek.ssm.ch9.pojo.JuiceMaker2;

public class ch9Main {
	
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring-cfg.xml");
		JuiceMaker2 juiceMaker2 = (JuiceMaker2) context.getBean("juiceMaker2");
		System.out.println(juiceMaker2.makeJuice());
	}
	
}
